package io;

import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class ArticleOutput {
	public void articleOutput(String article) {
		
		try{
		String fileName = "Modified Article.txt";
		OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new FileOutputStream(fileName));
		BufferedWriter bufferedWriter = new BufferedWriter(outputStreamWriter);
		bufferedWriter.write(article);
		bufferedWriter.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		finally{
			System.out.println("The corrected have been generated name as 'Modified Article'.");
		}
	}
}
